﻿<%@ Page Language="C#" MasterPageFile="~/MasterPageSERIX.Master" AutoEventWireup="true"
    CodeBehind="ConsultarQuestionario.aspx.cs" Inherits="SERIX.ConsultarQuestionario"
    Title="Consultar Ficha Cadastral" %>
<%@ Register Src="Controles/lovBeneficiarios.ascx" TagName="lovBeneficiarios" TagPrefix="uc4" %>
<%@ Register Src="Controles/Navegador.ascx" TagName="Navegador" TagPrefix="uc5" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div align="center">
        <table align="center" border="0" cellpadding="2" cellspacing="0" width="97%">
            <tr>
                <td class="secao_titulo" width="100%" class="grid_mestre">
                    <span style="color: black"></span>
                    <asp:Label ID="lblTitulo" runat="server" TabIndex="-1" Text="Consultar Ficha Cadastral"></asp:Label><hr
                        class="linhahorizontal" style="width: 740px" />
                </td>
            </tr>
        </table>
        <table align="center" border="0" cellpadding="2" cellspacing="0" width="97%">
            <tr>
                <td align="left" class="erro">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    <table align="center" border="0" cellpadding="2" cellspacing="0" width="100%">
                        <tr class="grid_titulo" style="width: 30%; text-align: right">
                            <td>
                                Beneficiário&nbsp;&nbsp;&nbsp;&nbsp;
                            </td>
                            <td style="width: 70%; text-align: left">
                                <asp:TextBox ID="tbBeneficiario" runat="server" MaxLength="60" Width="323px" ReadOnly="true"></asp:TextBox>
                                <uc4:lovBeneficiarios ID="lovBeneficiarios" runat="server" />
                            </td>
                        </tr>
                        <tr class="grid_titulo" style="width: 30%; text-align: right">
                            <td>
                                Propriedade&nbsp;&nbsp;&nbsp;&nbsp;
                            </td>
                            <td style="width: 70%; text-align: left">
                                <asp:DropDownList ID="ddlPropriedade" runat="server" Height="22px" 
                                    Width="250px" >
                                </asp:DropDownList>
                            &nbsp;
                                <asp:Button ID="Button1" runat="server" onclick="Button1_Click" 
                                    Text="Pesquisar" />
                            </td>
                        </tr>
                        <tr>
                            <td align="left" class="erro" >
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td align="center" style="color: #000000">
                    <asp:GridView ID="gridView" runat="server" AutoGenerateColumns="False" CssClass="grid"
                        OnRowDataBound="gridView_RowDataBound" PageSize="5" EmptyDataText="Nenhuma registro encontrado.">
                        <Columns>
                            <asp:BoundField DataField="IDT_QST" HeaderText="Identificador do questionario" SortExpression="IDT_QST"
                                Visible="False" />
                            <asp:BoundField DataField="DSC_TIQ" HeaderText="Descrição da Ficha Cadastral" SortExpression="DSC_TIQ"
                                ItemStyle-Width="520px">
                                <ItemStyle Width="520px"></ItemStyle>
                            </asp:BoundField>
                            <asp:BoundField DataField="DAT_QST" HeaderText="Data" SortExpression="DAT_QST" ItemStyle-Width="70px">
                                <ItemStyle Width="70px"></ItemStyle>
                            </asp:BoundField>
                           <%-- <asp:BoundField DataField="SITUACAO" HeaderText="Situação" SortExpression="SITUACAO"
                                ItemStyle-Width="70px">
                                <ItemStyle Width="70px"></ItemStyle>
                            </asp:BoundField>--%>
                            <asp:TemplateField FooterText="Visualizar" HeaderText="Visualizar" ItemStyle-Width="70px">
                            <ItemTemplate>
                                <asp:HyperLink ID="Visualizar_HyperLink" runat="server" ImageUrl="Imagens/botoes/Detail.png">Visualizar</asp:HyperLink>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" />
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:TemplateField FooterText="Preencher" HeaderText="Preencher" ItemStyle-Width="70px">
                            <ItemTemplate>
                                <asp:HyperLink ID="Preencher_HyperLink" runat="server" ImageUrl="Imagens/botoes/Edit.png">Preencher</asp:HyperLink>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" />
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                            <asp:TemplateField FooterText="Excluir" HeaderText="Excluir" 
                                ItemStyle-Width="70px" Visible="False">
                                <ItemTemplate>
                                    <asp:HyperLink ID="Excluir_HyperLink" runat="server" ImageUrl="Imagens/botoes/Delete.png">Excluir</asp:HyperLink>
                                </ItemTemplate>
                                <HeaderStyle HorizontalAlign="Center" />
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:TemplateField>
                        </Columns>
                        <AlternatingRowStyle CssClass="row_alter" />
                        <EmptyDataRowStyle CssClass="emptyrow" />
                        <FooterStyle CssClass="footer" />
                        <HeaderStyle CssClass="header" />
                        <PagerStyle CssClass="pager" />
                        <RowStyle CssClass="row" />
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td align="center">
                    <uc5:Navegador ID="Navegador1" runat="server" Visible="False" />
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
